import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a007(fd: IFeidaoAiBrowserComponent) {
	// todo
	const chkAll = fd.data.node.querySelector<HTMLInputElement>('[data-id="chk-all"]');
	const chk = chkAll.checked;
	const chkList = fd.data.node.querySelectorAll<HTMLInputElement>('[data-id="chk-list"]');
	const lists = Array.from(chkList) as HTMLInputElement[];
	lists.forEach((value) => {
		value.checked = chk;
	});
}
